import { BlackHoleRenderer } from './BlackHoleRenderer';

document.addEventListener('DOMContentLoaded', () => {
  const canvas = document.getElementById('canvas') as HTMLCanvasElement;
  if (!canvas) {
    console.error('Canvas元素未找到');
    return;
  }

  const renderer = new BlackHoleRenderer(canvas);
  renderer.init();
  renderer.start();
}); 